<form>
  <div class="form-group row">
    <label for="inputEmail3" class="col-sm-2 form-control-label" style="line-height: 35px;">账号：</label>
    <div class="col-sm-6">
      <input type="text" class="form-control" id="inputEmail3" maxlength="20" [(ngModel)]="accountChange" [ngModelOptions]="{standalone: true}">
    </div>
  </div>
  <div class="form-group row">
    <label for="inputPassword3" class="col-sm-2 form-control-label" style="line-height: 35px">姓名：</label>
    <div class="col-sm-6">
      <input type="text" class="form-control" id="inputPassword3" [(ngModel)]="nameChange" [ngModelOptions]="{standalone: true}">
    </div>
  </div>
  <div class="form-group row">
    <label for="inputPassword3" class="col-sm-2 form-control-label" style="line-height: 35px">用户角色：</label>
    <div class="col-sm-6">
      <select class="form-control" [(ngModel)]="typeChange" [ngModelOptions]="{standalone: true}">
        <!--此处的双向绑定，绑定的是item.id-->
        <option  *ngFor="let item of usersType" [value]="item.id">{{item.name}}</option>
      </select>
    </div>
  </div>
  <div class="form-group row" *ngIf="typeChange == 3">
    <label class="col-sm-2 form-control-label text-left" style="line-height: 35px">所属企业</label>
    <div class="col-sm-6">
      <select class="form-control" [(ngModel)]="eid" [ngModelOptions]="{standalone: true}">
        <option  *ngFor="let item of nameArr" [value] ="item.id" >{{item.name}}</option>
      </select>
    </div>
  </div>



  <div class="form-group row" style="margin-left: 172px;">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" class="btn btn-primary" (click)="saveEdit()">确定</button>
      <button type="submit" class="btn btn-secondary" (click)="return()">取消</button>
    </div>
  </div>

</form>
